<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: JCClient类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#pub-static-methods">类方法</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_j_c_client-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCClient类 参考<div class="ingroups"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html">登录模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_client_8h_source.html">JCClient.h</a>&gt;</code></p>
<div class="dynheader">
类 JCClient 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_j_c_client.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:aeab901abd7d38c3fd527c6a330d1e95c"><td class="memItemLeft" align="right" valign="top">(bool)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_client.html#aeab901abd7d38c3fd527c6a330d1e95c">login:password:serverAddress:loginParam:</a></td></tr>
<tr class="separator:aeab901abd7d38c3fd527c6a330d1e95c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d4434928223e0dd2b288e9cb527a314"><td class="memItemLeft" align="right" valign="top">(bool)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_client.html#a0d4434928223e0dd2b288e9cb527a314">logout</a></td></tr>
<tr class="separator:a0d4434928223e0dd2b288e9cb527a314"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
类方法</h2></td></tr>
<tr class="memitem:a5815574e0923b89a74bfe34d11a737fd"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_j_c_client.html">JCClient</a> *__nullable)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_j_c_client.html#a5815574e0923b89a74bfe34d11a737fd">create:callback:creatParam:</a></td></tr>
<tr class="separator:a5815574e0923b89a74bfe34d11a737fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50afe46970ec86e129af3d8585334334"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_j_c_client.html#a50afe46970ec86e129af3d8585334334">destroy</a></td></tr>
<tr class="separator:a50afe46970ec86e129af3d8585334334"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:adafb7d2be56855d494b696d578db7234"><td class="memItemLeft" align="right" valign="top">NSString *__nonnull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#adafb7d2be56855d494b696d578db7234">userId</a></td></tr>
<tr class="separator:adafb7d2be56855d494b696d578db7234"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73d7c50285ac7afcb6f1e1bbd94851e1"><td class="memItemLeft" align="right" valign="top">NSString *__nonnull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#a73d7c50285ac7afcb6f1e1bbd94851e1">displayName</a></td></tr>
<tr class="separator:a73d7c50285ac7afcb6f1e1bbd94851e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af428728decbaf19a2ac6552a07351a65"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga485360c806cb3a83e41ac56a9ad7e709">JCClientState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#af428728decbaf19a2ac6552a07351a65">state</a></td></tr>
<tr class="separator:af428728decbaf19a2ac6552a07351a65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2df352ba1e2764058f49404d32dd041b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_j_c_client_create_param.html">JCClientCreateParam</a> *__nullable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#a2df352ba1e2764058f49404d32dd041b">createParam</a></td></tr>
<tr class="separator:a2df352ba1e2764058f49404d32dd041b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c7a7e5dd921478ee8c5f6e59818f7c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_j_c_client_login_param.html">JCClientLoginParam</a> *__nullable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#a4c7a7e5dd921478ee8c5f6e59818f7c6">loginParam</a></td></tr>
<tr class="separator:a4c7a7e5dd921478ee8c5f6e59818f7c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19b3f00c5f4a51d8d008a0af49878292"><td class="memItemLeft" align="right" valign="top">NSString *__nonnull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#a19b3f00c5f4a51d8d008a0af49878292">appkey</a></td></tr>
<tr class="separator:a19b3f00c5f4a51d8d008a0af49878292"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30719cf88f438e003688e2b6962fa28c"><td class="memItemLeft" align="right" valign="top">NSString *__nonnull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#a30719cf88f438e003688e2b6962fa28c">serverUid</a></td></tr>
<tr class="separator:a30719cf88f438e003688e2b6962fa28c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade9766726cb31848c3afa720b6e7472a"><td class="memItemLeft" align="right" valign="top">NSString *__nonnull&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_client.html#ade9766726cb31848c3afa720b6e7472a">serverAddress</a></td></tr>
<tr class="separator:ade9766726cb31848c3afa720b6e7472a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>全局基础类</p>
<p>主要负责登录登出管理及账户属性存储 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a5815574e0923b89a74bfe34d11a737fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5815574e0923b89a74bfe34d11a737fd">&#9670;&nbsp;</a></span>create:callback:creatParam:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_j_c_client.html">JCClient</a>* __nullable) create: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>appKey</em></td>
        </tr>
        <tr>
          <td class="paramkey">callback:</td>
          <td></td>
          <td class="paramtype">(id&lt; <a class="el" href="protocol_j_c_client_callback-p.html">JCClientCallback</a> &gt; __nonnull)&#160;</td>
          <td class="paramname"><em>callback</em></td>
        </tr>
        <tr>
          <td class="paramkey">creatParam:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_client_create_param.html">JCClientCreateParam</a> *__nullable)&#160;</td>
          <td class="paramname"><em>createParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建 <a class="el" href="interface_j_c_client.html">JCClient</a> 对象</p>
<p><a class="el" href="interface_j_c_client.html">JCClient</a> 的所有接口函数，如无特殊说明，都建议在主线程调用</p>
<dl class="section note"><dt>注解</dt><dd><ul>
<li>请确保在调用其他 API 前先调用该方法创建并初始化 <a class="el" href="interface_j_c_client.html">JCClient</a> 对象</li>
<li>调用此方法创建 <a class="el" href="interface_j_c_client.html">JCClient</a> 对象后，期间没有调用过 <a class="el" href="interface_j_c_client.html#a50afe46970ec86e129af3d8585334334">destroy</a> 方法销毁对象，然后又重复调用此方法，会直接返回第一次创建的 <a class="el" href="interface_j_c_client.html">JCClient</a> 对象</li>
</ul>
</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">appKey</td><td>用户从 Juphoon Cloud 平台上申请的 AppKey 字符串 </td></tr>
    <tr><td class="paramname">callback</td><td><a class="el" href="protocol_j_c_client_callback-p.html">JCClientCallback</a> 对象，用于回调相关通知 </td></tr>
    <tr><td class="paramname">createParam</td><td>创建参数，传入 nil 则按默认值创建，详见 <a class="el" href="interface_j_c_client_create_param.html">JCClientCreateParam</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd><a class="el" href="interface_j_c_client.html">JCClient</a> 对象 </dd></dl>
<dl class="exception"><dt>异常</dt><dd>
  <table class="exception">
    <tr><td class="paramname">appKey、JCClientCallback 任意一个参数传空就会返回 nil</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a50afe46970ec86e129af3d8585334334"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50afe46970ec86e129af3d8585334334">&#9670;&nbsp;</a></span>destroy</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) destroy </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁 <a class="el" href="interface_j_c_client.html">JCClient</a> 对象</p>
<dl class="section note"><dt>注解</dt><dd>此方法为异步调用，所以在调用此方法后不能马上调用 <a class="el" href="interface_j_c_client.html#a5815574e0923b89a74bfe34d11a737fd">create</a> 方法去重新创建 <a class="el" href="interface_j_c_client.html">JCClient</a> 对象 </dd></dl>

</div>
</div>
<a id="aeab901abd7d38c3fd527c6a330d1e95c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeab901abd7d38c3fd527c6a330d1e95c">&#9670;&nbsp;</a></span>login:password:serverAddress:loginParam:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (bool) login: </td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>userId</em></td>
        </tr>
        <tr>
          <td class="paramkey">password:</td>
          <td></td>
          <td class="paramtype">(NSString *__nonnull)&#160;</td>
          <td class="paramname"><em>password</em></td>
        </tr>
        <tr>
          <td class="paramkey">serverAddress:</td>
          <td></td>
          <td class="paramtype">(NSString *__nullable)&#160;</td>
          <td class="paramname"><em>serverAddress</em></td>
        </tr>
        <tr>
          <td class="paramkey">loginParam:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_j_c_client_login_param.html">JCClientLoginParam</a> *__nullable)&#160;</td>
          <td class="paramname"><em>loginParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>登录 Juphoon Cloud 平台</p>
<p>只有登录成功后才能进行平台上的各种业务</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">userId</td><td>用户名，长度在 64 字节以内的字符串。以下为支持的字符集范围（共 66 个字符）：<ul>
<li>26 个小写英文字母 a-z</li>
<li>26 个大写英文字母 A-Z</li>
<li>10 个数字 0-9</li>
<li>'+'，'-'，'_'，'.'。另外 '-'，'_'，'.' 这三个字符不能处于用户名的第一位 </li>
</ul>
</td></tr>
    <tr><td class="paramname">password</td><td>密码，不能为 nil 或 ""，长度不能超过 128 字符 </td></tr>
    <tr><td class="paramname">serverAddress</td><td>登录服务器地址，默认地址为 <a href="http:cn.router.justalkcloud.com:8080">http:cn.router.justalkcloud.com:8080</a>（国内环境）。如果是海外用户需要设置为 <a href="http:intl.router.justalkcloud.com:8080">http:intl.router.justalkcloud.com:8080</a>（国际环境） </td></tr>
    <tr><td class="paramname">loginParam</td><td>登录参数，一般不需要设置，如需设置请询问客服，传 nil 则按默认值，详见 <a class="el" href="interface_j_c_client_login_param.html">JCClientLoginParam</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：正常执行调用流程，登录结果通过 <a class="el" href="protocol_j_c_client_callback-p.html#aa367a4ec84f6cf5b0d0ef22f83522df2">onLogin</a> 通知</li>
<li>false：调用异常，不会收到 <a class="el" href="protocol_j_c_client_callback-p.html#aa367a4ec84f6cf5b0d0ef22f83522df2">onLogin</a> 通知 </li>
</ul>
</dd></dl>

</div>
</div>
<a id="a0d4434928223e0dd2b288e9cb527a314"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d4434928223e0dd2b288e9cb527a314">&#9670;&nbsp;</a></span>logout</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (bool) logout </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>登出 Juphoon Cloud 平台</p>
<p>登出后不能进行平台上的各种业务</p>
<dl class="section return"><dt>返回</dt><dd>调用是否成功<ul>
<li>true：正常执行调用流程，登出结果通过 <a class="el" href="protocol_j_c_client_callback-p.html#ab6bdf870c036c4ee85aeb6ffcd97e08a">onLogout</a> 通知</li>
<li>false：调用失败，不会收到 <a class="el" href="protocol_j_c_client_callback-p.html#ab6bdf870c036c4ee85aeb6ffcd97e08a">onLogout</a> 通知 </li>
</ul>
</dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a19b3f00c5f4a51d8d008a0af49878292"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19b3f00c5f4a51d8d008a0af49878292">&#9670;&nbsp;</a></span>appkey</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString* __nonnull) appkey</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取appkey</p>
<p>得到的appkey是由 <a class="el" href="interface_j_c_client.html#a5815574e0923b89a74bfe34d11a737fd">create</a> 方法传入的 </p>

</div>
</div>
<a id="a2df352ba1e2764058f49404d32dd041b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2df352ba1e2764058f49404d32dd041b">&#9670;&nbsp;</a></span>createParam</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_j_c_client_create_param.html">JCClientCreateParam</a>* __nullable) createParam</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取创建参数</p>
<p>得到的创建参数就是用户在调用 <a class="el" href="interface_j_c_client.html#a5815574e0923b89a74bfe34d11a737fd">create</a> 方法时传入的 createParam 参数<br  />
 若用户在调用 <a class="el" href="interface_j_c_client.html#a5815574e0923b89a74bfe34d11a737fd">create</a> 方法时，createParam 传入了 nil，则返回默认的 <a class="el" href="interface_j_c_client_create_param.html">JCClientCreateParam</a> 对象 </p>

</div>
</div>
<a id="a73d7c50285ac7afcb6f1e1bbd94851e1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73d7c50285ac7afcb6f1e1bbd94851e1">&#9670;&nbsp;</a></span>displayName</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString* __nonnull) displayName</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">copy</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取/设置自己的昵称</p>
<p>以下情况时，都会将自己的昵称发送给其他用户：</p><ul>
<li>调用 <a class="el" href="interface_j_c_call.html#ae9d354eabdaad1c5991062ae6aa05680">call</a> 发起呼叫时</li>
<li>调用 <a class="el" href="interface_j_c_media_channel.html#aae7c111f87465ec2dbac767b63f484aa">join</a> 加入频道时</li>
<li>调用 <a class="el" href="interface_j_c_message_channel.html#ab84f3affc5ddc36f40cd23cfb97b18ee">sendMessage</a>、<a class="el" href="interface_j_c_message_channel.html#a0fecaa87aaa6be8e27173c6f9225c054">sendFile</a> 发送消息时</li>
</ul>
<p>各模块获取对方昵称的方法：</p><ul>
<li>通话场景获取对方昵称：<a class="el" href="interface_j_c_call_item.html#a1dd3ac0be7334e1f22d8a73d3b53a9ba">displayName</a></li>
<li>消息场景获取对方昵称：<a class="el" href="interface_j_c_message_channel_item.html#adf622250ca09d62d7b85cd67227e26f0">dsplayName</a></li>
<li>会议频道场景获取对方昵称：<a class="el" href="interface_j_c_media_channel_participant.html#ada9fd6fc160acec77564f00292378b4b">displayName</a></li>
</ul>
<dl class="section note"><dt>注解</dt><dd>每次调用 <a class="el" href="interface_j_c_client.html#a5815574e0923b89a74bfe34d11a737fd">create</a> 初始化 SDK 后都需要重新设置 </dd></dl>

</div>
</div>
<a id="a4c7a7e5dd921478ee8c5f6e59818f7c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c7a7e5dd921478ee8c5f6e59818f7c6">&#9670;&nbsp;</a></span>loginParam</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_j_c_client_login_param.html">JCClientLoginParam</a>* __nullable) loginParam</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取登录参数</p>
<p>得到的登录参数就是用户在调用 <a class="el" href="interface_j_c_client.html#aeab901abd7d38c3fd527c6a330d1e95c">login</a> 方法时传入的 loginParam 参数<br  />
 若用户在调用 <a class="el" href="interface_j_c_client.html#aeab901abd7d38c3fd527c6a330d1e95c">login</a> 方法时， loginParam 传入了 nil，则将返回默认的 <a class="el" href="interface_j_c_client_login_param.html">JCClientLoginParam</a> 对象<br  />
 需要注意的是只有用户状态为登录中或已登录时才能获取到值，其他状态将返回 nil </p>

</div>
</div>
<a id="ade9766726cb31848c3afa720b6e7472a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade9766726cb31848c3afa720b6e7472a">&#9670;&nbsp;</a></span>serverAddress</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString* __nonnull) serverAddress</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取登录服务器地址</p>
<p>得到的登录地址就是用户在调用 <a class="el" href="interface_j_c_client.html#aeab901abd7d38c3fd527c6a330d1e95c">login</a> 方法时传入的 serverAddress 参数<br  />
 若用户在调用 <a class="el" href="interface_j_c_client.html#aeab901abd7d38c3fd527c6a330d1e95c">login</a> 方法时，serverAddress 传入了 nil 或者 ""，将返回默认地址 <a href="http:cn.router.justalkcloud.com:8080">http:cn.router.justalkcloud.com:8080</a><br  />
 需要注意的是只有用户状态为登录中或已登录才能获取到值，其他状态将返回 nil </p>

</div>
</div>
<a id="a30719cf88f438e003688e2b6962fa28c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30719cf88f438e003688e2b6962fa28c">&#9670;&nbsp;</a></span>serverUid</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString* __nonnull) serverUid</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取自己在服务器上的 uid </p>

</div>
</div>
<a id="af428728decbaf19a2ac6552a07351a65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af428728decbaf19a2ac6552a07351a65">&#9670;&nbsp;</a></span>state</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#ga485360c806cb3a83e41ac56a9ad7e709">JCClientState</a>) state</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取当前登录状态</p>
<ul>
<li><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga485360c806cb3a83e41ac56a9ad7e709a5a6b582ba8275e39567b419ce05b7860">JCClientStateNotInit</a> : 未初始化</li>
<li><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga485360c806cb3a83e41ac56a9ad7e709aa455b750bbf9c4d8e2162eb29255c67f">JCClientStateIdle</a> : 未登录</li>
<li><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga485360c806cb3a83e41ac56a9ad7e709a8346c85a19f76aae4e61756dd83c761d">JCClientStateLogining</a> : 登录中</li>
<li><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga485360c806cb3a83e41ac56a9ad7e709ae234aaca0d7d17f56ac4646c1ce4c0b7">JCClientStateLogined</a> : 登录成功</li>
<li><a class="el" href="group___xE7_x99_xBB_xE5_xBD_x95_xE6_xA8_xA1_xE5_x9D_x97.html#gga485360c806cb3a83e41ac56a9ad7e709a5bdd4f3d018ad3132fa241156101d2e3">JCClientStateLogouting</a> : 登出中 </li>
</ul>

</div>
</div>
<a id="adafb7d2be56855d494b696d578db7234"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adafb7d2be56855d494b696d578db7234">&#9670;&nbsp;</a></span>userId</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString* __nonnull) userId</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">copy</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取用户标识</p>
<p>得到的的用户标识就是用户在调用 <a class="el" href="interface_j_c_client.html#aeab901abd7d38c3fd527c6a330d1e95c">login</a> 方法时传入的 userId 参数<br  />
 需要注意的是只有用户状态为登录中或已登录才能获取到值，其他状态将返回 nil </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCClient/<a class="el" href="_j_c_client_8h_source.html">JCClient.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
